package cn.fengkuok.jantis.bug.domian.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;

import cn.fengkuok.core.domain.model.AbstractEntity;

@Entity
@Table(name = "T_BUG")
public class Bug extends AbstractEntity {

	private static final long serialVersionUID = -2148256646649228283L;

	private Integer priority;

	private Integer severity;

	@Column(length = 6)
	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	@Column(length = 6)
	public Integer getSeverity() {
		return severity;
	}

	public void setSeverity(Integer severity) {
		this.severity = severity;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
